import Vue from "vue";
import VueRouter from "vue-router";
// import Home from '../views/Home.vue'
Vue.use(VueRouter)

const routes = [
    {
        path: '/login',
        name: 'login',
        component: () => import('../views/Login/login.vue')
    },
    {
        path: '/',
        name: 'Main',
        component: () => import('../views/Main.vue'),
        redirect: '/home',
        children: [{
            path: '/home',
            name: 'home',
            component: () => import('../views/home')
        },
        {
            path: '/user1',
            name: 'user1',
            component: () => import('../views/User/index1.vue')
        },
        {
            path: '/user2',
            name: 'user2',
            component: () => import('../views/User/index2.vue')
        },
        {
            path: '/user3',
            name: 'user3',
            component: () => import('../views/User/index3.vue')
        },
        {
            path: '/user4',
            name: 'user4',
            component: () => import('../views/User/index4.vue')
        },
            
        {
            path: '/car1',
            name: 'car1',
            component: () => import('../views/Car/index1.vue')
        },
        {
            path: '/car2',
            name: 'car2',
            component: () => import('../views/Car/index2.vue')
        },
        {
            path: '/car3',
            name: 'car3',
            component: () => import('../views/Car/index3.vue')
        },
        {
            path: '/car4',
            name: 'car4',
            component: () => import('../views/Car/index4.vue')
        },
        {
            path: '/plan1',
            name: 'plan1',
            component: () => import('../views/plan/index1.vue')
        },
        {
            path: '/plan2',
            name: 'plan2',
            component: () => import('../views/plan/index2.vue')
        },
        {
            path: '/plan3',
            name: 'plan3',
            component: () => import('../views/plan/index3.vue')
        },
        {
            path: '/plan4',
            name: 'plan4',
            component: () => import('../views/plan/index4.vue')
        },
        {
            path: '/feed1',
            name: 'feed1',
            component: () => import('../views/feedback/index1.vue')
        },
        {
            path: '/feed2',
            name: 'feed2',
            component: () => import('../views/feedback/index2.vue')
        },
            {
                path: '/login',
                name: 'login',
                component: () => import('../views/Login/login')
            },
        ]
    },
    
    
]

const router = new VueRouter({
    mode: 'history',
    routes

})

export default router